package com.wushi.lenovo.asia5b.app_model.result;

import com.mvp.base.model.BaseModel;

/**
 * Created by zhangyuncai on 2018/11/19.
 */
public class LoginResModel extends BaseModel {
    private LoginResultBean member;
    private String access_token;
    private String token_type;
    private String expires_in;

    public String getAccess_token() {
        return access_token;
    }

    public void setAccess_token(String access_token) {
        this.access_token = access_token;
    }

    public LoginResultBean getMember() {
        return member;
    }

    public void setMember(LoginResultBean member) {
        this.member = member;
    }

    public int getMemberId() {
        if (member != null) {
            return member.getId();
        }
        return -1;
    }

    public static class LoginResultBean extends BaseModel{
        private String name;
        private String email;
        private String avatar_url;
        private int id;

        public String getName() {
            return name;
        }


        public String getEmail() {
            return email;
        }


        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getAvatar_url() {
            return avatar_url;
        }

    }
}
/*
 "data": {
     "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1
     "token_type": "bearer",
     "expires_in": 119,
     "member": {
         "name": null,
         "email": "166012372@qq.com",
         "id": 13013,
         "avatar_url": "https:\/\/gim-allnet.com:8000\/images\/img_avatar.png"
     }
 }
 */
